#include <header.h>

int num = 0;

void *run(void *arg){
	for (int i = 0; i < 1000000; i++){
		num++;
	}
	return NULL;
}

int main(int argc, char* argv[]){
	pthread_t son_id;
	pthread_create(&son_id, NULL, run, NULL);

	for (int i = 0; i < 1000000; i++){
		num++;
	}

	pthread_join(son_id, NULL);
	printf("%d", num);
	return 0;
}